public class Date {
    public int year;
    public int month;
    public int day;
    public void setDay(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public void print(){
        System.out.println(this.year+"年"+this.month+"月"+this.day+"日");
    }

    public static void main(String[] args) {
        Date day1=new Date();
        day1.setDay(2006,6,23);
        day1.print();

        Date day2=new Date();
        day2.setDay(2002,10,12);
        day2.print();
    }
}
